<admintpl file="headerEx"/>
<link href="__PUBLIC__/js/artDialog/skins/default.css" rel="stylesheet" />
<title>{:L('ADMIN_MENU_ADD')}</title>
<!--responsive table-->
<link href="__PUBLIC__/TciocEx/css/table-responsive.css" rel="stylesheet"/>
<!--ios7-->
<link rel="stylesheet" type="text/css" href="__PUBLIC__/TciocEx/js/ios-switch/switchery.css" />

<!--icheck-->
<link href="__PUBLIC__/TciocEx/js/iCheck/skins/minimal/minimal.css" rel="stylesheet">
<link href="__PUBLIC__/TciocEx/js/iCheck/skins/minimal/red.css" rel="stylesheet">
<link href="__PUBLIC__/TciocEx/js/iCheck/skins/minimal/green.css" rel="stylesheet">
</head>
<body class="sticky-header">
<section>
	<!-- main content start-->
	<div class="full-content">
		<!-- body wrapper start -->
		<div class="wrapper">
			<div class="row">
				<div class="col-sm-12">
					<section class="panel">
						<header class="panel-heading custom-tab turquoise-tab">
							<ul class="nav nav-tabs">

								<li><a href="{:U('AdminTerm/index')}"><i class="fa fa-bars"></i> {:L('PORTAL_ADMINTERM_INDEX')}</a></li>
								<li class="active"><a href="#A" data-toggle="tab"><i class="fa fa-plus"></i> {:L('GENERAL_SETTING')}</a></li>
								<li><a href="#B" data-toggle="tab"><i class="fa fa-plus"></i> {:L('SEO_SETTING')}</a></li>
								<li><a href="#C" data-toggle="tab"><i class="fa fa-plus"></i> {:L('TEMPLATE_SETTING')}</a></li>
							</ul>
						</header>
						<div class="panel-body">
							<div class=" form">
								<form class="cmxform form-horizontal adminex-form js-ajax-form" id="commentForm" method="post" action="{:U('AdminTerm/add_post')}" novalidate="novalidate">
									<div class="tabbable">
										<div class="tab-content">
											<div class="tab-pane active" id="A">
												<fieldset>
													<div class="form-group">
														<label  for="parent" class="control-label col-lg-2" >{:L('PARENT')} </label>
														<div >
															&nbsp;<select name="parent" id="parent" class=" input-lg "  style="padding: 5px 16px;height: auto"  >
															<option value="0">{:L('ROOT')}</option>
															{$terms_tree}
														</select>
														</div>
													</div>
													<div class="form-group">
														<label for="name" class="control-label col-lg-2">{:L('NAME')}(*)</label>
														<div class="col-lg-10">
															<input   class=" form-control" id="name" name="name" minlength="1" value="" type="text" required="" placeholder="请填写{:L('NAME')}！">
														</div>
													</div>
													<div class="form-group">
														<label for="slug" class="control-label col-lg-2">标题</label>
														<div class="col-lg-10">
															<input   class=" form-control" id="slug" name="slug"   value="" type="text"  placeholder="请填写标题！">
														</div>
													</div>
													<div class="form-group">
														<label  for="description" class="control-label col-lg-2" >{:L('CATEGORY_DESCRIPTION')}</label>
														<div class="col-lg-10">
															<textarea class=" form-control" id="description"    name="description" rows="5" cols="57" style="width: 500px;"></textarea>
														</div>
													</div>
													<div class="form-group">
														<label  for="taxonomy" class="control-label col-lg-2" >{:L('CATEGORY_TYPE')} </label>
														<div >
															&nbsp;<select name="taxonomy" id="taxonomy"  class=" input-lg "  style="padding: 5px 16px;height: auto" >
															<foreach name="taxonomys" item="vo">
															 <option value="{$key}">{$vo}</option>
															</foreach>
														</select>
														</div>
													</div>

												</fieldset>
											</div>
											<div class="tab-pane" id="B">
												<fieldset>
													<div class="form-group">
														<label for="seo_title" class="control-label col-lg-2">{:L('SEO_TITLE')}</label>
														<div class="col-lg-10">
															<input   class=" form-control" id="seo_title" name="seo_title"  value="" type="text"  placeholder="请填写{:L('SEO_KEYWORDS')}！">
														</div>
													</div>
													<div class="form-group">
														<label for="seo_keywords" class="control-label col-lg-2">{:L('SEO_KEYWORDS')}</label>
														<div class="col-lg-10">
															<input   class=" form-control" id="seo_keywords" name="seo_keywords"  value="" type="text"  placeholder="请填写{:L('SEO_KEYWORDS')}！">
														</div>
													</div>
													<div class="form-group">
														<label  for="seo_description" class="control-label col-lg-2" >{:L('SEO_DESCRIPTION')}</label>
														<div class="col-lg-10">
															<textarea class=" form-control" id="seo_description"    name="seo_description" rows="5" cols="57" ></textarea>
														</div>
													</div>

												</fieldset>
											</div>
											<div class="tab-pane" id="C">
												<php>$tpl_list=sp_admin_get_tpl_file_list();</php>
												<fieldset>
													<div class="form-group">
														<label  for="list_tpl" class="control-label col-lg-2" >{:L('LIST_TEMPLATE')} </label>
														<div >
															<php>
																$list_tpls=$tpl_list;
																unset($list_tpls['list']);
															</php>
															&nbsp;<select name="list_tpl" id="list_tpl" class=" input-lg "  style="padding: 5px 16px;height: auto" >
															<option value="list">list{:C("TMPL_TEMPLATE_SUFFIX")}</option>
															<foreach name="list_tpls" item="vo">
																<option value="{$vo}">{$vo}{:C("TMPL_TEMPLATE_SUFFIX")}</option>
															</foreach>
														</select>
														</div>
													</div>

													<div class="form-group">
														<label  for="list_tpl" class="control-label col-lg-2" >{:L('ARTICLE_TEMPLATE')} </label>
														<div >
															<php>
																$article_tpls=$tpl_list;
																unset($article_tpls['article']);
															</php>
															&nbsp;<select name="one_tpl" id="one_tpl" class=" input-lg "  style="padding: 5px 16px;height: auto" >
															<option value="article">article{:C("TMPL_TEMPLATE_SUFFIX")}</option>
															<foreach name="article_tpls" item="vo">
																<option value="{$vo}">{$vo}{:C("TMPL_TEMPLATE_SUFFIX")}</option>
															</foreach>
														</select>
														</div>
													</div>

												</fieldset>
											</div>
										</div>
									</div>

									<div class="form-group">
										<div class="col-md-12 text-center clearfix" style=" padding-left: 25%;padding-top: 20px;">
											<button class="btn btn-primary js-ajax-submit" type="submit">{:L('ADD')}</button>
											<a href="javascript:history.back(-1);" class="btn btn-default">{:L('BACK')}</a>
										</div>
									</div>
								</form>
							</div>

						</div>
					</section>

				</div>
			</div>
		</div>
		<!--footer section start-->
		<footer>
			<admintpl file="copyright"/>
		</footer>
		<!--footer section end-->
	</div>
	<!-- main content end-->
</section>
<script src="__PUBLIC__/TciocEx/js/jquery-1.10.2.min.js"></script>
<script src="__PUBLIC__/js/wind.js"></script>
<script src="__PUBLIC__/js/common.js"></script>
<script src="__PUBLIC__/TciocEx/js/jquery-ui-1.9.2.custom.min.js"></script>
<script src="__PUBLIC__/simpleboot/bootstrap/js/bootstrap.min.js"></script>
<script src="__PUBLIC__/TciocEx/js/jquery-migrate-1.2.1.min.js"></script>
<script src="__PUBLIC__/TciocEx/js/bootstrap.min.js"></script>
<script src="__PUBLIC__/TciocEx/js/modernizr.min.js"></script>
<script src="__PUBLIC__/TciocEx/js/jquery.nicescroll.js"></script>
<script src="__PUBLIC__/js/ajaxForm.js"></script>

<script type="text/javascript" src="__PUBLIC__/TciocEx/js/jquery.validate.min.js"></script>
<script src="__PUBLIC__/TciocEx/js/validation-localization/messages_zh.min.js"></script>
<script src="__PUBLIC__/TciocEx/js/scripts.js"></script>
<script src="__PUBLIC__/TciocEx/js/validation-init.js"></script>

</body>
</html>
